package com.huopaolan.yohuoshop.Mvc.View;

import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

import com.huopaolan.lib_core.Base.BaseActivity;
import com.huopaolan.yohuoshop.Mvc.View.helper.HelperActivity;
import com.huopaolan.yohuoshop.Mvp.View.Activity.HomeActivity;
import com.huopaolan.yohuoshop.Mvp.View.Activity.MainActivity;
import com.huopaolan.yohuoshop.R;

public class GuiDanceActivity extends BaseActivity implements OnClickListener {
    private Button men, women;

    @Override
    public int layoutID() {
        return R.layout.activity_gui_dance;
    }

    @Override
    public void initView() {
        men = findViewById(R.id.btn_helper_men);
        women = findViewById(R.id.btn_helper_women);
        men.setOnClickListener(this);
        women.setOnClickListener(this);

        /**
         *如果用户不是第一次使用直接跳转显示界面
         * */
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(GuiDanceActivity.this, HomeActivity.class));
                finish();
            }
        }, 10000);

    }

    @Override
    public void onStart() {
        Window window = getWindow();
        window.setStatusBarColor(Color.BLACK);
        super.onStart();
    }

    @Override
    public void initData() {

    }

    @Override
    public void setUpDagger() {

    }

    @Override
    public void showDialog() {

    }

    @Override
    public void hideDialog() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_helper_men:
                startActivity(new Intent(this, HomeActivity.class));
                finish();
                break;
            case R.id.btn_helper_women:
                startActivity(new Intent(this, HomeActivity.class));
                finish();
                break;
        }
    }
}
